package com.jiyun.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiyun.dto.CaigouOrderDto;
import com.jiyun.entity.CaigouOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 采购订单表 Mapper 接口
 * </p>
 *
 * @author 聪哥哥
 * @since 2023-02-22
 */
public interface CaigouOrderMapper extends BaseMapper<CaigouOrder> {

    Page<CaigouOrderDto> findPage(Page<CaigouOrderDto> caigouOrderPage);


    @Select("select MAX(order_id) from caigou_order ")
    String findMaxOrderId();
}
